/*
 *  $Id: SkyCity.cs 1067 2010-05-21 11:00:43Z thenn.erannor $
 *	This file is a part of Ragima CCG.
 *	(C) 2008 Ragima development group.
 *
 *	Licensed under the terms of the GNU GPL License version 2.
 *
 */

namespace Ragima.Cards001.Air.Lands {
    public class SkyCity: LandCard {
        public SkyCity(): base("001_a_l_sky_city") {
            Level = CompleteLevel.ReadyForTest;
            Element = ElementType.Air;
            Value = 100;
            AddManaCost(ElementType.Air, 4);
        }
        public override void SetNaturalAffects(ICollector<Affect> affects) {
            affects.Add(new Affects.ManaIncome(ElementType.Air, 4));
            affects.Add<SkyCityAura>();
        }

        private class SkyCityAura: CreatureAuraAffect {
            public SkyCityAura(): base(true, false) {}

            public override string Id {
                get { return AffectManager.GetCardId<SkyCity>("aura"); }
            }

            protected override Affect CreateSubAffect() {
                return new SkyCityAffect();
            }
        }

        private class SkyCityAffect: SpellAffect<SkyCity> {
            public SkyCityAffect() {
                Add(new Affects.FlightBlock());
            }
        }
    }
}
